Use ptrdiff_t, not int, for sizes.
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 4 Jun 2011 02:02:36 +0000 (19:02 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 4 Jun 2011 02:02:36 +0000 (19:02 -0700)
commit243ab32be15025bb424064fc156caf9100894945
tree902fedb5418546e64875a49e2ff965b7cc1898af
parentb1d53bc431cf8771f8ac6c6023e662dfcf8b222f
Use ptrdiff_t, not int, for sizes.

* image.c (slurp_file): Switch from int to ptrdiff_t.
All uses changed.
(slurp_file, svg_load): Check that file size fits in both
size_t (for malloc) and ptrdiff_t (for sanity and safety).
src/ChangeLog
src/image.c